package grape.workflow.rest.task.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.Map;

/**
 * Created by yangwei
 * Created at 2020/6/28 19:00
 */
@Data
@EqualsAndHashCode(callSuper=false)
@ApiModel("动态表单任务完成表单")
public class DynamicFormCompleteTaskWithFormForm extends TaskCompleteForm {

    @NotNull(message = "表单参数不能为空")
    @ApiModelProperty("表单参数")
    private Map<String, String> variables;

    @NotNull(message = "是否完成任务不能为空")
    @ApiModelProperty(value = "是否完成任务",notes = "如果不是完成任务只保存数据")
    private Boolean isComplete;

}
